Page({
  data: {
      dialogShow: false,
      buttons: [{text: '取消'}, {text: '确定'}],
      show:false
  },
  openConfirm: function () {
      this.setData({
          dialogShow: true
      })
  },
  tapDialogButton(e) {
      this.setData({
          dialogShow: false,
      })
      if(e.detail.index==1){
        wx.navigateBack()
      }
  },
  renyuan(){
      this.setData({
          show:true
      },()=>{
          console.log(this.data.show);
      })
  },
  onClose() {
    this.setData({ show: false });
  },
});